<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<style>
    .hasRole{
        line-height: 17px;
    }
    .btn.addRole, .btn.hasRole, .btn.plus, .btn.minus {
        margin-left:2px;
    }
</style>
<div class="row">
    <div class="col-sm-12">
        <div class="well">
            <div class="widget-body-toolbar">
                <strong><spring:message code="USER_INFORMATION"/></strong>
                <i> - <spring:message code="PROJECT_SEARCH_TIP"/></i>
            </div>

            <div class="widget-body no-padding" style="margin-top: 10px;">
                <!-- row -->
                <div class="row">
                    <div class="col-sm-12 col-md-12 col-lg-12">
                        <!-- simple search -->
                        <div id="simple-search">
                            <!--<div class="col-sm-12 col-md-12 col-lg-12">-->
                            <div class="row">
                                <div class="col-sm-3">
                                    <div class="input-group" style="width:100%">
                                        <input type="text" class="form-control" id="loginName"
                                               name="search_LIKE_loginName" placeholder="<spring:message code='USER_LOGINNAME'/> "/>
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <div class="input-group" style="width:100%">
                                        <input class="form-control" type="text" id="name" name="search_LIKE_name"
                                               placeholder="<spring:message code='USER_NAME'/> ">
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <div class="input-group" style="width:100%">
                                        <input class="form-control" type="text" id="email" name="search_LIKE_email"
                                               placeholder='<spring:message code="USER_EMAIL"/> '>
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <div class="btn-group pull-right" style="padding:1px 10px 10px 0;">
                                        <a href="javascript:void(0)" class="btn btn-sm btn-primary pull-right"
                                           id="btn-simple-search"> <i class="fa fa-search"></i> <spring:message
                                                code="USER_SEARCH"/> </a>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <!--</div>-->
                    </div>
                    <!-- end simple search -->


                </div>
            </div>
            <!-- end row -->


        </div>
        <!-- end widget body -->

    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="well">
            <div class="widget-body-toolbar" style="padding:1px 10px 10px 0;">
                <a href="#user/register" class="btn btn-success btn-sm pull-right" data-toggle="modal">
                    <i class="fa  fa-plus"></i> <spring:message code="USER_NEW_USER"/>
                </a>
            </div>

            <div class="widget-body no-padding" style="margin-top: 10px;">
                <!-- row -->
                <table id="dt_users" class="table table-striped table-bordered table-hover" width="100%">
                    <thead>
                    <tr>
                        <th data-hide="phone" class="col-sm-1"><spring:message code="TABLE_NO"/></th>
                        <th data-class="expand"><spring:message code="USER_ID"/></th>
                        <th data-class="expand" class="col-sm-2"><spring:message code="USER_LOGINNAME"/></th>
                        <th data-hide="phone" class="col-sm-2"><spring:message code="USER_NAME"/></th>
                        <th data-hide="phone,tablet" class="col-sm-3"><spring:message code="USER_EMAIL"/></th>
                        <th class="hidden-xs hidden-sm" class="col-sm-3"><spring:message code="USER_STATUS"/></th>
                        <th class="col-sm-3"><spring:message code="USER_OPERATE"/></th>
                    </tr>
                    </thead>
                    <tbody></tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script src="js/core/business/user/userInit.js"></script>